//  主要样式在这里统一管理
@import "variables";

html,
body {
  width: 100%;
  height: 100%;
  background: @bgcolor;
  overflow: hidden;
}

.ivu-btn-primary {
  background-color: #5c92e8;
  border-color: #5c92e8;
}

// 模态窗的头部
.ivu-modal-content {
  .ivu-modal-header {
    height: 48px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    background-color: #5c92e8;
    .ivu-modal-header-inner {
      color: #fff;
      font-size: 16px;
      letter-spacing: 3px;
    }
    p {
      font-size: 18px;
      color: #fff;
    }
  }

  .ivu-modal-footer {
    background-color: #f7f6fb;
    .ivu-btn-primary {
      background-color: #5c92e8;
    }
  }
}

.lock-screen-back {
  border-radius: 50%;
  z-index: -1;
  box-shadow: 0 0 0 0 #667aa6 inset;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 3s;
}

.main {
  position: absolute;
  width: 100%;
  height: 100%;
  .unlock-con {
    width: 0px;
    height: 0px;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 11000;
  }
  .ivu-card-bordered {
    border-radius: 0;
    border: 0;
  }
  .sidebar-menu-con {
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 21;
    transition: width 0.3s;
  }
  .layout-text {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
  }
  .main-hide-text .layout-text {
    display: none;
  }
  &-content-container {
    position: relative;
  }
  &-header-con {
    box-sizing: border-box;
    position: fixed;
    display: block;
    padding-left: 200px;
    width: 100%;
    height: 60px;
    z-index: 20;
    box-shadow: 0 2px 1px 1px rgba(100, 100, 100, 0.1);
    transition: padding 0.3s;
  }
  &-breadcrumb {
    padding: 8px 15px 0;
  }
  &-menu-left {
    background: #464c5b;
    height: 100%;
  }
  .header-chanNo {
    display: inline-block;
    width: 90px;
    padding: 18px 0;
    text-align: center;
  }
  .tags-con {
    height: 40px;
    z-index: -1;
    overflow: hidden;
    background: #f0f0f0;
    .tags-outer-scroll-con {
      position: relative;
      box-sizing: border-box;
      padding-right: 120px;
      width: 100%;
      height: 100%;
      .tags-inner-scroll-body {
        position: absolute;
        padding: 2px 10px;
        overflow: visible;
        white-space: nowrap;
        transition: left 0.3s ease;
      }
      .close-all-tag-con {
        position: absolute;
        right: 0;
        top: 0;
        box-sizing: border-box;
        padding-top: 8px;
        text-align: center;
        width: 110px;
        height: 100%;
        background: white;
        box-shadow: -3px 0 15px 3px rgba(0, 0, 0, 0.1);
        z-index: 10;
      }
    }
  }
  &-header {
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 1px 1px rgba(100, 100, 100, 0.1);
    position: relative;
    z-index: 11;
    .navicon-con {
      margin: 6px;
      display: inline-block;
    }
    .header-middle-con {
      position: absolute;
      left: 60px;
      top: 0;
      right: 340px;
      bottom: 0;
      padding: 10px;
      overflow: hidden;
    }
    .header-avator-con {
      position: absolute;
      right: 0;
      top: 0;
      height: 100%;
      width: 340px;
      .switch-theme-con {
        display: inline-block;
        width: 40px;
        height: 100%;
      }
      .message-con {
        display: inline-block;
        width: 30px;
        padding: 18px 0;
        text-align: center;
        cursor: pointer;
        i {
          vertical-align: middle;
        }
      }
      .change-skin {
        font-size: 14px;
        font-weight: 500;
        padding-right: 5px;
      }
      .switch-theme {
        height: 100%;
      }
      .user-dropdown {
        &-menu-con {
          position: absolute;
          right: 0;
          top: 0;
          width: 150px;
          height: 100%;
          .main-user-name {
            display: inline-block;
            width: 120px;
            word-break: keep-all;
            white-space: nowrap;
            vertical-align: middle;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: right;
          }
        }
        &-innercon {
          height: 100%;
          padding-right: 14px;
        }
      }
      .full-screen-btn-con {
        display: inline-block;
        width: 30px;
        padding: 18px 0;
        text-align: center;
        cursor: pointer;
        i {
          vertical-align: middle;
        }
      }
      .lock-screen-btn-con {
        display: inline-block;
        width: 30px;
        padding: 18px 0;
        text-align: center;
        cursor: pointer;
        i {
          vertical-align: middle;
        }
      }
    }
  }
  .single-page-con {
    position: absolute;
    top: 60px;
    right: 0;
    bottom: 0;
    overflow: auto;
    background-color: @bgcolor;
    z-index: 1;
    transition: left 0.3s;
    .single-page {
      margin: 10px;
      height: 100%;
    }
  }
  &-copy {
    text-align: center;
    padding: 10px 0 20px;
    color: #9ea7b4;
  }
}

.taglist-moving-animation-move {
  transition: transform 0.3s;
}

.ivu-icon-ios-close-empty {
  color: #fff !important;
}

.ivu-modal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

  .ivu-modal {
    top: 0;
  }
}

.logo-con {
  padding: 8px;
  text-align: center;
  img {
    height: 44px;
    width: auto;
  }
}

.ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab-active {
  color: @bluefontColor !important;
  background: #ffffff !important;
}

.ivu-tabs-bar {
  border: 0;
  margin-bottom: 0;
}

.ivu-tabs-nav-container {

}

.ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-nav-container {
  height: 40px;
}

.ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab {
  border: 0;
  color: #999;
  border-radius: 0;
  height: 40px;
  line-height: 40px;
  padding: 0;
  min-width: 148px;
  font-size: 14px;
  text-align: center;
  background: #dddddd;
  margin-right: 1px;
}

.ivu-breadcrumb-item-link {
  color: #999;
  font-weight: 200;
}

.main-breadcrumb {
  .flexLayout(flex-start, center, row);
  .ivuarrow {
    display: inline-block;
    margin: 0 8px;
  }
  .ivu-breadcrumb-item-separator {
    color: #998;
  }
}

.finleanCloud-location {
  vertical-align: middle;
}

//
.hint {
  width: 100%;
  color: @bluefontColor;
  font-size: 14px;
  padding: 12px 24px;
  margin-bottom: 24px;
  background: #eaf4fe;
  border: solid 1px #d5e8fc;
}

.ivu-modal-body {
  padding: 16px;
}

//按钮样式
.saveBtnStyle() {
  font-size: 14px;
  height: 32px;
  background-color: @bluefontColor;
  color: @whiteFontcolor;
}

.CancelBtnStyle() {
  font-size: 14px;
  height: 32px;
  background-color: @whiteFontcolor;
  color: @bluefontColor;
}

//表格按钮
.tablePageBtnStyle {
  width: 120px;
  margin-bottom: 16px;
  .saveBtnStyle();
}

// 表格搜索条件的宽度限制
.formItemStyle {
  width: 200px;
}

//flex布局
.flexLayout(@justify:flex-start,@align:center,@direction:row) {
  display: flex;
  justify-content: @justify;
  align-items: @align;
  flex-direction: @direction;
}

//清除浮动
.clearfix() {
  zoom: 1;
  &:before,
  &:after {
    content: "";
    display: table;
  }
  &:after {
    clear: both;
    visibility: hidden;
    font-size: 0;
    height: 0;
  }
}